package cn.com.darly.videoandroidpm.common.dao;


import java.io.Serializable;

import cn.com.darly.videoandroidpm.common.sugar.SugarRecord;
import cn.com.darly.videoandroidpm.common.sugar.annotation.Column;
import cn.com.darly.videoandroidpm.common.sugar.annotation.Table;

/** 用户会话消息类
 * @author Darly/张宇辉/2018/5/18 16:34
 * @version 1.0/cn.com.darly.videoandroidpm.bean
 */
@Table(name = "vpm_coversation_msg")
public class ConversationMessageInfo extends SugarRecord implements Serializable {
    public static int TYPE_BLE = 0;
    public static int TYPE_PHONE = 1;
    //服務端id
    @Column(name = "msg_id")
    private String msgId;
    //发送用户
    @Column(name = "msg_from")
    private String msgFrom;
    //接收用户
    @Column(name = "msg_to")
    private String msgTo;
    //类型
    @Column(name = "msg_type")
    private String msgType;
    //生成时间
    @Column(name = "msg_time")
    private String msgTime;
    @Column(name = "msg_other")
    private String msgOther;
    //内容
    @Column(name = "msg_content")
    private String msgContent;
    //是否已经发送到服务端
    @Column(name = "msg_send")
    private boolean msgSend;

    //消息的唯一识别码
    @Column(name = "msg_key")
    private String msgKey;

    public String getMsgId() {
        return msgId;
    }

    public void setMsgId(String msgId) {
        this.msgId = msgId;
    }

    public String getMsgFrom() {
        return msgFrom;
    }

    public void setMsgFrom(String msgFrom) {
        this.msgFrom = msgFrom;
    }

    public String getMsgTo() {
        return msgTo;
    }

    public void setMsgTo(String msgTo) {
        this.msgTo = msgTo;
    }

    public String getMsgType() {
        return msgType;
    }

    public void setMsgType(String msgType) {
        this.msgType = msgType;
    }

    public String getMsgTime() {
        return msgTime;
    }

    public void setMsgTime(String msgTime) {
        this.msgTime = msgTime;
    }

    public String getMsgOther() {
        return msgOther;
    }

    public void setMsgOther(String msgOther) {
        this.msgOther = msgOther;
    }

    public String getMsgContent() {
        return msgContent;
    }

    public void setMsgContent(String msgContent) {
        this.msgContent = msgContent;
    }

    public boolean isMsgSend() {
        return msgSend;
    }

    public void setMsgSend(boolean msgSend) {
        this.msgSend = msgSend;
    }

    public String getMsgKey() {
        return msgKey;
    }

    public void setMsgKey(String msgKey) {
        this.msgKey = msgKey;
    }
}
